package search;




public class Distanta {
	Punct pct1;
	Punct pct2;

        Distanta (Punct p1,Punct p2){
            pct1=p1;
            pct2=p2;

        }
	public Punct getP1() {
		return pct1;
	}
	public void setP1(Punct p1) {
		this.pct1 = p1;
	}
	public Punct getP2() {
		return pct2;
	}
	public void setP2(Punct p2) {
		this.pct2 = p2;
	}
	
	public double distanceM(){
		return this.pct1.distance(pct2)*111200*Math.cos(Math.PI/4);
	}

}
